package com.baidu.mpks.schema.service;

import com.baidu.mpks.schema.domain.UserSchemaClass;
import com.baidu.mpks.schema.domain.UserSchemaProperty;
import com.fasterxml.jackson.databind.JsonNode;

import java.io.IOException;

public interface UserSchemaManageService {

    Integer insertSchemaClass(UserSchemaClass schemaClass);

    void updateSchemaClass(UserSchemaClass schemaClass);

    void deleteSchemaClass(Integer id);

    Integer insertSchemaProperty(UserSchemaProperty schemaProperty);

    void deleteSchemaPropertyById(Integer id);

    void deleteSchemaPropertyByDomain(String domain);

    void updateSchemaProperty(UserSchemaProperty schemaProperty);

    JsonNode clearSchemaCache() throws IOException;
}
